package com.classtest.test3;

public class Monster {
    private String name;//怪物名字
    private int blood;//怪物血量
    private int atk;//攻击力

    public Monster(String name, int blood, int atk) {
        this.name = name;
        this.blood = blood;
        this.atk = atk;
    }

    public Monster() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public int getAtk() {
        return atk;
    }

    public void setAtk(int atk) {
        this.atk = atk;
    }
    //攻击方式
    public void attackWay(){
        System.out.println("攻击");
    }
    //移动方式
    public void moveWay(){
        System.out.println("移动方式");
    }
}
